import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './modules/home'
import Leaderboard from './modules/leaderboard'
import Singer from './modules/singer'
import Video from './modules/video'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: '/home'
  },
  ...Leaderboard,
  ...Home,
  ...Singer,
  ...Video
]

const router = new VueRouter({
  routes
})

export default router